import area from '../mock/area';
import Mock from 'mockjs';
import { createPromise } from '../util';

/** 区域概要 */
export const overview = ({ areaId }) => {
  return createPromise(Mock.mock(area['overview' + areaId]));
}

/** 路口态势 */
export const junctionIndex = (data) => {
  return createPromise(Mock.mock(area['junctionIndex']));
}

/** 干线态势监控 */
export const roadIndex = (data) => {
  return createPromise(Mock.mock(area['roadIndex']));
}

/** 交通流量检测 */
export const trafficVolume = (data) => {
  return createPromise(Mock.mock(area['trafficVolume']));
}

/** 交通事故 */
export const trafficAccident = (data) => {
  return createPromise(Mock.mock(area['trafficAccident']));
}

/** 异常告警 */
export const warning = (data) => {
  return createPromise(Mock.mock(area['warning']));
}

/** 示范区列表 */
export const areaList = () => {
  return createPromise(Mock.mock(area['areaList']));
}